namespace Gateway.IQuery;

/// <summary>
/// 基础的分页请求参数
/// </summary>
public class BasePageRequest
{
    /// <summary>
    /// 页码
    /// </summary>
    public int Page { get; set; }

    /// <summary>
    /// 页容量
    /// </summary>
    public int PageSize { get; set; }

    /// <summary>
    /// 偏移量
    /// </summary>
    public int Offset => (Page - 1) * PageSize;
}